﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using WiMo.Games.Drawables;

namespace WiMo.Games.GameEngine.WP7S.Drawables
{
    public class SpriteShape : SpriteShapeBase
    {
        public override void Render(IDisplay display)
        {
            var element = DrawInformation as UIElement;

            TransformGroup tg = new TransformGroup();
            var translate = new TranslateTransform();
            var rotate = new RotateTransform();
            var scale = new ScaleTransform();

            tg.Children.Add(translate);
            tg.Children.Add(rotate);
            tg.Children.Add(scale);

            element.RenderTransform = tg;

            display.Render(this);
        }
    }
}
